/*
 * @Author: mikey.zhaopeng 
 * @Date: 2018-12-31 20:58:29 
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2018-12-31 21:50:45
 */
import 'package:flutter/material.dart';
import '../constants.dart' show AppColors, AppFontSize;

class TabPage3 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new DefaultTabController(
      length: 3,
      child: new Scaffold(
        appBar: new AppBar(
            elevation: 0,
            backgroundColor: Color(AppColors.tabBgColor),
            title: Container(
              margin: const EdgeInsets.only(right: 40.0),
              child: TabBar(
                labelColor: Color(AppColors.primaryColor),
                labelStyle: TextStyle(
                    fontSize: AppFontSize.tabBarFontSize,
                    fontWeight: FontWeight.bold),
                unselectedLabelColor: Color(AppColors.tabBarUnselectColor),
                tabs: [
                  new Tab(text: "精品"),
                  new Tab(text: "折扣"),
                  new Tab(text: "BT"),
                  new Tab(text: "单机"),
                  new Tab(text: "H5"),
                ],
                indicatorColor: Color(AppColors.primaryColor),
                indicatorSize: TabBarIndicatorSize.label,
              ),
            )),
        body: new TabBarView(
          children: [
            new Icon(Icons.directions_car),
            new Icon(Icons.directions_transit),
            new Icon(Icons.directions_bike),
          ],
        ),
      ),
    );
  }
}
